.class public Lcom/xingbook/anima/e;
.super Landroid/view/animation/Animation;


# instance fields
.field private a:F

.field private b:F

.field private c:F

.field private d:F

.field private e:I

.field private f:F


# direct methods
.method public constructor <init>(IF)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0}, Landroid/view/animation/Animation;-><init>()V

    iput v0, p0, Lcom/xingbook/anima/e;->a:F

    iput v0, p0, Lcom/xingbook/anima/e;->b:F

    iput v0, p0, Lcom/xingbook/anima/e;->f:F

    iput p1, p0, Lcom/xingbook/anima/e;->e:I

    iput p2, p0, Lcom/xingbook/anima/e;->f:F

    return-void
.end method


# virtual methods
.method protected applyTransformation(FLandroid/view/animation/Transformation;)V
    .locals 8

    const/high16 v7, 0x3f80

    const/high16 v6, 0x3f40

    const/high16 v5, 0x3f00

    const/high16 v4, 0x3e80

    const/high16 v3, 0x4080

    iget v1, p0, Lcom/xingbook/anima/e;->c:F

    iget v0, p0, Lcom/xingbook/anima/e;->d:F

    iget v2, p0, Lcom/xingbook/anima/e;->e:I

    if-nez v2, :cond_4

    cmpg-float v1, p1, v4

    if-gez v1, :cond_0

    mul-float v1, p1, v3

    iget v2, p0, Lcom/xingbook/anima/e;->c:F

    iget v3, p0, Lcom/xingbook/anima/e;->f:F

    mul-float/2addr v1, v3

    sub-float v1, v2, v1

    :goto_0
    invoke-virtual {p2}, Landroid/view/animation/Transformation;->getMatrix()Landroid/graphics/Matrix;

    move-result-object v2

    invoke-virtual {v2, v1, v0}, Landroid/graphics/Matrix;->setTranslate(FF)V

    return-void

    :cond_0
    cmpl-float v1, p1, v4

    if-lez v1, :cond_1

    cmpg-float v1, p1, v5

    if-gez v1, :cond_1

    sub-float v1, p1, v4

    mul-float/2addr v1, v3

    iget v2, p0, Lcom/xingbook/anima/e;->c:F

    iget v3, p0, Lcom/xingbook/anima/e;->f:F

    sub-float v1, v7, v1

    mul-float/2addr v1, v3

    sub-float v1, v2, v1

    goto :goto_0

    :cond_1
    cmpl-float v1, p1, v5

    if-lez v1, :cond_2

    cmpg-float v1, p1, v6

    if-gez v1, :cond_2

    sub-float v1, p1, v5

    mul-float/2addr v1, v3

    iget v2, p0, Lcom/xingbook/anima/e;->c:F

    iget v3, p0, Lcom/xingbook/anima/e;->f:F

    mul-float/2addr v1, v3

    add-float/2addr v1, v2

    goto :goto_0

    :cond_2
    cmpl-float v1, p1, v6

    if-lez v1, :cond_3

    cmpg-float v1, p1, v7

    if-gez v1, :cond_3

    sub-float v1, p1, v6

    mul-float/2addr v1, v3

    iget v2, p0, Lcom/xingbook/anima/e;->c:F

    iget v3, p0, Lcom/xingbook/anima/e;->f:F

    sub-float v1, v7, v1

    mul-float/2addr v1, v3

    add-float/2addr v1, v2

    goto :goto_0

    :cond_3
    iget v1, p0, Lcom/xingbook/anima/e;->c:F

    goto :goto_0

    :cond_4
    cmpg-float v0, p1, v4

    if-gez v0, :cond_5

    mul-float v0, p1, v3

    iget v2, p0, Lcom/xingbook/anima/e;->d:F

    iget v3, p0, Lcom/xingbook/anima/e;->f:F

    mul-float/2addr v0, v3

    sub-float v0, v2, v0

    goto :goto_0

    :cond_5
    cmpl-float v0, p1, v4

    if-lez v0, :cond_6

    cmpg-float v0, p1, v5

    if-gez v0, :cond_6

    sub-float v0, p1, v4

    mul-float/2addr v0, v3

    iget v2, p0, Lcom/xingbook/anima/e;->d:F

    iget v3, p0, Lcom/xingbook/anima/e;->f:F

    sub-float v0, v7, v0

    mul-float/2addr v0, v3

    sub-float v0, v2, v0

    goto :goto_0

    :cond_6
    cmpl-float v0, p1, v5

    if-lez v0, :cond_7

    cmpg-float v0, p1, v6

    if-gez v0, :cond_7

    sub-float v0, p1, v5

    mul-float/2addr v0, v3

    iget v2, p0, Lcom/xingbook/anima/e;->d:F

    iget v3, p0, Lcom/xingbook/anima/e;->f:F

    mul-float/2addr v0, v3

    add-float/2addr v0, v2

    goto :goto_0

    :cond_7
    cmpl-float v0, p1, v6

    if-lez v0, :cond_8

    cmpg-float v0, p1, v7

    if-gez v0, :cond_8

    sub-float v0, p1, v6

    mul-float/2addr v0, v3

    iget v2, p0, Lcom/xingbook/anima/e;->d:F

    iget v3, p0, Lcom/xingbook/anima/e;->f:F

    sub-float v0, v7, v0

    mul-float/2addr v0, v3

    add-float/2addr v0, v2

    goto/16 :goto_0

    :cond_8
    iget v0, p0, Lcom/xingbook/anima/e;->d:F

    goto/16 :goto_0
.end method

.method public initialize(IIII)V
    .locals 2

    const/4 v1, 0x0

    invoke-super {p0, p1, p2, p3, p4}, Landroid/view/animation/Animation;->initialize(IIII)V

    iget v0, p0, Lcom/xingbook/anima/e;->a:F

    invoke-virtual {p0, v1, v0, p1, p3}, Lcom/xingbook/anima/e;->resolveSize(IFII)F

    move-result v0

    iput v0, p0, Lcom/xingbook/anima/e;->c:F

    iget v0, p0, Lcom/xingbook/anima/e;->b:F

    invoke-virtual {p0, v1, v0, p2, p4}, Lcom/xingbook/anima/e;->resolveSize(IFII)F

    move-result v0

    iput v0, p0, Lcom/xingbook/anima/e;->d:F

    return-void
.end method
